package com.xszx.order.client;

import com.xszx.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 白熊
 * @Date: 2024/7/26 11:32
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    @GetMapping("/serviceedu/course/{id}")
    R getById(@PathVariable("id") String id);

    @GetMapping("/serviceedu/teacher/{id}")//根据id获取教师
    R getById1(@PathVariable("id") String id);
}
